import App from './App';

// #ifndef VUE3
import Vue from 'vue';
import http from './util/http';
import uView from '@/uni_modules/uview-ui';
import mixin from './mixin/mixin';
Vue.mixin(mixin);

Vue.use(uView);
Vue.prototype.$http = http;
http.default.baseURL = 'http://127.0.0.1/shuati1/public/index.php/api';
Vue.prototype.$serverIp = 'http://127.0.0.1/shuati1/public/';

Vue.config.productionTip = false;
App.mpType = 'app';
const app = new Vue({
	...App
});
app.$mount();
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
export function createApp() {
	const app = createSSRApp(App);
	return {
		app
	};
}
// #endif
